// [系统策略]安全策略
import { axios } from '@/utils/request'

/**
 * 获取安全策略
 * @params params
 *
 */
export function getSystemSecurity (params) {
  return axios({
    method: 'get',
    url: 'system-security',
    params
  })
}

/**
 * 新增/修改安全策略
 * @params data
 * {
    {"comment":{"type":"string"}},
    {"createBy":{"type":"string"}},
    {"createDate":{"type":"string"}},
    {"failCount":{"type":"integer"}},
    {"id":{"type":"integer"}},
    {"modifyBy":{"type":"string"}},
    {"modifyDate":{"type":"string"}},
    {"passwordMax":{"type":"integer"}},
    {"passwordMin":{"type":"integer"}},
    {"passwordRule":{"type":"string"}},
    {"usefulLife":{"type":"integer"}}
   }
 */
export function postSystemSecurity (data) {
  return axios({
    method: 'post',
    url: 'system-security',
    data
  })
}
